﻿namespace 第三题
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int count = 0;
           for(int i=100;i<999;i++)
            {
                
                int a, b, c;
                a = i /100;
                b = (i %100)/10;
                c = i % 10;
                if(a*a*a+b*b*b+c*c*c==i)
                {
                    count++;
                    Console.WriteLine(i);
                }
            }
            Console.WriteLine("共" + count.ToString() + "个");
            Console.ReadLine();
        }
    }
}
